package com.example.homework2.demos.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
@RequestMapping({"/","/toIndex"})
    public String toIndex(Model model){
    model.addAttribute("message","hello,how are you doing?");
    return "index";
}

}
